using Cookbook.Services.Core.Domain;

using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;

namespace Cookbook.Services.Core.Persistency.MappingOverrides
{
    public class IngredientMappingOverride : IAutoMappingOverride<Ingredient>
    {
        public void Override(AutoMapping<Ingredient> mapping)
        {
            mapping.References(x => x.Product).Fetch.Join();
        }
    }
}